cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)

PROJECT(ParseOP2)

if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
	SET(CMAKE_DEBUG_POSTFIX "_d")
endif()

set(OP2_CODE
ReadOP2.h
ReadOP2.cpp
)

file(GLOB op2_py_file ${CMAKE_SOURCE_DIR}/parseop2/*.py)
file(COPY ${op2_py_file} DESTINATION ${WORK_DIR})

add_library(${PROJECT_NAME} SHARED ${OP2_CODE})
target_link_libraries(${PROJECT_NAME} ${PYTHON_LIBS} )

